projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d09d1e
)
(search_buffer): Update POS_BYTE for regexp search.
author
Kenichi Handa
<handa@m17n.org>
Fri, 20 Feb 1998 01:40:47 +0000
(
01:40
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Fri, 20 Feb 1998 01:40:47 +0000
(
01:40
+0000)
src/search.c
patch
|
blob
|
history
diff --git
a/src/search.c
b/src/search.c
index a4e17a7eff4a0eb85642e3780c5ff62990346b0d..26569920b1c8559be54ec1133493380ed86a165a 100644
(file)
--- a/
src/search.c
+++ b/
src/search.c
@@
-1070,6
+1070,7
@@
search_buffer (string, pos, pos_byte, lim, lim_byte, n,
}
if (val >= 0)
{
+ pos_byte = search_regs.start[0] + BEGV_BYTE;
for (i = 0; i < search_regs.num_regs; i++)
if (search_regs.start[i] >= 0)
{
@@
-1102,6
+1103,7
@@
search_buffer (string, pos, pos_byte, lim, lim_byte, n,
}
if (val >= 0)
{
+ pos_byte = search_regs.end[0] + BEGV_BYTE;
for (i = 0; i < search_regs.num_regs; i++)
if (search_regs.start[i] >= 0)
{